<div class="navbar-default sidebar" role="navigation">
  <div class="sidebar-nav navbar-collapse slimscrollsidebar">
    <%= render :partial => "restaurants/partials/profile/user_profile" %>
    <ul class="nav" id="side-menu">
       <li> 
        <a href="/restaurants/welcome" class="waves-effect <%= 'active' if active_class == 'welcome' %>">
          <i class="fa fa-tachometer fa-fw" data-icon="v"></i> 
          <span class="hide-menu">餐厅首页 
          </span>
        </a>
      </li> 
       <li> 
        <a href="#" class="waves-effect <%= 'active' if active_class == 'food' %>">
          <i class="fa fa-cutlery fa-fw" data-icon="v"></i> 
          <span class="hide-menu">菜品管理 <span class="fa arrow"></span> 
          </span>
        </a>
        <ul class="nav nav-second-level">
          <li><a href="/restaurants/food_types">菜品种类(<%= @food_categories_count %>种)</a> </li>
          <li> <a href="/restaurants/foods">菜品(<%= @food_total_count %>)</a> </li>
        </ul>
      </li>
      <li> 
        <a href="javascript:void(0);" class="waves-effect <%= 'active' if active_class == 'restaurant' %>">
          <i class="ti-settings fa-fw " data-icon="7"></i> 
          <span class="hide-menu"> 餐厅信息设置 
            <span class="fa arrow"></span> 
          </span>
        </a>
         <ul class="nav nav-second-level">
            <li><a href="/restaurants/info/show">餐厅信息管理</a> </li>
            <li>
            <a href="/restaurants/printers">餐厅打印机设置(<%= @printer_count %>台)
            </a></li>
            <li>
              <a href="/restaurants/info/qrcode">餐厅二维码管理</a>
            </li>
         </ul>
      </li>  
      <li> 
        <a href="javascript:void(0);" class="waves-effect <%= 'active' if active_class == 'order' %>">
          <i class="fa fa-shopping-basket  fa-fw " data-icon="7"></i> 
          <span class="hide-menu"> 订单管理 
            <span class="fa arrow"></span> 
            <span class="label label-rouded label-danger pull-right">
              <%= @wait_orders_count %>
            </span>
            <span class="label label-rouded label-megna pull-right">
              <%= @success_order_count %>
            </span>
          </span>
        </a>
         <ul class="nav nav-second-level">
            <li><a href="/restaurants/orders?status=0">待确认的订单(线下支付
            <%= @wait_orders_count %>)</a></li>
            <li><a href="/restaurants/orders?status=1">正在处理的订单(已支付 
            <%= @success_order_count %>)</a> </li>
            <li><a href="/restaurants/orders?status=3">已完成的订单</a></li>
            <li><a href="/restaurants/orders?status=2">已取消的订单</a></li>
         </ul>
      </li>  
      <li> 
        <a href="javascript:void(0);" class="waves-effect <%= 'active' if active_class == 'chart' %>">
          <i class="fa fa-line-chart  fa-fw " data-icon="7"></i> 
          <span class="hide-menu"> 统计分析
            <span class="fa arrow"></span> 
          </span>
        </a>
         <ul class="nav nav-second-level">
            <li><a href="/restaurants/charts/sellers">销量统计</a></li>
            <li><a href="/restaurants/charts/orders">订单统计</a> </li>
         </ul>
      </li>
    </ul>
  </div>
</div>